<#-- @ftlvariable name="entity" type="com.xci.edu.core.entity.ExamPreExtend" -->
<#include "/sys/_layout.ftl">
<!doctype html>
<html>
<head>
    <@pageHeader/>
</head>
<body>
<@pageLoading/>
<div class="jxpanel winpanel" data-fit="true">
    <form id="editform" class="jxform" method="post"
          action="${saveUrl("/background/examPre/","createSave","updateSave")}">
        <input name="studentId" value="1331888531618009088" type="hidden">
        <input class="hidden" name="status" checked type="checkbox" value="1" data-unchecked-value="0"/>
        <table class="table jxtable-form">
            <tr>
                <th>学员姓名</th>
                <td>
                    <input class="form-control" id="studentName" name="studentName" value="${entity.studentName}" maxlength="50" data-validate="required: [true,'请输入学员姓名']" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>考试开始时间</th>
                <td>
                    <div class='input-group date jxdatetime'>
                        <input class="form-control" id="examStartDate" name="examStartDate"
                               value="${web.formatDateTime(entity.examStartDate)}"
                               data-validate="required: [true,'请选择考试开始时间']"
                               autocomplete="off" >
                        <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                        </span>
                    </div>
                </td>
            </tr>
            <tr>
                <th>考试结束时间</th>
                <td>
                    <div class='input-group date jxdatetime'>
                        <input class="form-control" id="examEndDate" name="examEndDate" value="${web.formatDateTime(entity.examEndDate)}" data-validate="required: [true,'请选择考试结束时间']" autocomplete="off">
                        <span class="input-group-addon">
                            <i class="fa fa-calendar"></i>
                        </span>
                    </div>
                </td>
            </tr>
            <tr>
                <th>试卷名称</th>
                <td>
                    <select class="form-control jxselect" name="paperId" data-text-field="paperName" data-validate="required: [true,'请选择试卷']"
                            data-allow-clear="true">
                        <option></option>
                        <@eduPaperSelectOption selectedValue=entity.paperId eduCategoryId="${entity.eduCategoryId}"></@eduPaperSelectOption>
                    </select>
                </td>
            </tr>
            <tr>
                <th>可考次数</th>
                <td>
                    <input class="form-control" id="usableCount" name="usableCount" value="${entity.usableCount}" maxlength="2" data-validate="required: [true,'请输入可考次数']" autocomplete="off"/>
                </td>
            </tr>
            <tr>
                <th>预约类型</th>
                <td>
                    <select class="form-control jxselect" id="preCategory" name="preCategory" data-validate="required: [true,'请选择预约类型']" autocomplete="off">
                        <@preCategoryOptions selectedValue=entity.preCategory/>
                    </select>
                </td>
            </tr>
            <tr>
                <th>备注</th>
                <td>
                    <textarea class="form-control" name="remark" maxlength="500" rows="3" style="resize: none">${entity.remark}</textarea>
                </td>
            </tr>
        </table>
    </form>
    <div class="panel-footer text-right">
        <@editFormDialogCommand/>
    </div>
</div>
<@editFormPageFooter/>
</body>
</html>
